const path = require('path')
const fs = require('fs')
const glob = require('glob')
const currentPath = path.resolve(__dirname, './test/')

let pattern = '**/'
//let pattern = '**/*(1.*|X.txt)'
let files = glob.sync(pattern, {
  cwd: currentPath
  //忽略当前文件夹文件
  //ignore: ['**/t1/*.*']
  //忽略全部文件
  //ignore: ['**/t1/**']
  //不要文件夹
  //nodir: true
  //ignore过滤
})

console.log(files)
